import layout from '@/layout'
// export default {
//   path: '/permission',
//   component: layout,
//   children: [{
//     path: '',
//     name: 'permission',
//     component: () => import('@/views/permission'),
//     meta: {
//       title: '员工管理',
//       icon: 'yuangong'
//     }
//   }]
// }

export default {
  path: '/permission',
  component: layout,
  redirect: '/permission',
  meta: { title: '员工管理', icon: 'yuangong' },
  children: [{
    meta: { title: '快递员管理', icon: 'table' },
    path: 'courier',
    name: 'courier',
    component: () => import('@/views/permission/components/courier.vue')
  },
  { meta: { title: '司机管理', icon: 'table' },
    path: 'driver',
    name: 'driver',
    component: () => import('@/views/permission/components/driver.vue')
  },
  {
    meta: { title: '排班管理', icon: 'table' },
    path: 'scheduling',
    name: 'scheduling',
    component: () => import('@/views/permission/components/scheduling.vue')
  }
  ]
}
